package com.crr.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "spu")
@ApiModel("产品信息表")
public class Spu {

    @TableId(value = "spu_id",type = IdType.AUTO)
    @ApiModelProperty("产品id")
    Integer spuId;
    @TableField("brand_id")
    @ApiModelProperty("品牌id")
    Integer brandId;
    @ApiModelProperty("分类id")
    Integer categoryId;
    @ApiModelProperty("店铺分类id")
    Integer shopCategoryId;
    @ApiModelProperty("店铺id")
    Integer shopId;
    @ApiModelProperty("产品名")
    String name;
    @ApiModelProperty("卖点")
    String sellingPoint;
    @ApiModelProperty("商品介绍主图")
    String mainImgUrl;
    @ApiModelProperty("商品图片")
    String imgUrls;
    @ApiModelProperty("商品视频")
    String video;
    @ApiModelProperty("售价")
    double priceFee;
    @ApiModelProperty("市场价")
    double marketPriceFee;
    @ApiModelProperty("状态 -1:删除, 0:下架, 1:上架")
    int status;
    @ApiModelProperty("sku是否含有图片 0无 1有")
    int hasSkuImg;
    @ApiModelProperty("序号")
    int seq;
    @TableField(exist = false)
    @ApiModelProperty("产品详情")
    String detail;
    @ApiModelProperty("规格列表")
    @TableField(exist = false)
    List<Sku> skuList;
    @ApiModelProperty("属性列表")
    @TableField(exist = false)
    List<Attr> attrList;


}
